﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="DanhSachLienHe.ascx.cs" Inherits="UserControl_LienHe_DanhSachLienHe" %>
<asp:DataList ID="DataList1" runat="server" DataKeyField="ID" 
    DataSourceID="SqlDataSource1" Width="100%">
    <HeaderTemplate>
        <div ID="page-main-content-title" class="style1" style="outline: 0;">
            &nbsp;<asp:Label ID="lblTitle" runat="server" CssClass="title-item" 
                Text='Thông tin liên hệ'></asp:Label>
        </div>
    </HeaderTemplate>
    <ItemTemplate>
        <br />
        *
        <asp:Label ID="Label2" runat="server" 
            style="font-weight: 700; font-size:14px" Text='<%# Eval("Ten") %>'></asp:Label>
        <br />
        <asp:Label ID="Label3" runat="server" 
            Text='<%# "Điện Thoại : " + Eval("DienThoai") %>'></asp:Label>
        <br />
        <asp:Label ID="Label4" runat="server" Text='<%# "Email : " + Eval("Email") %>'></asp:Label>
        <br />
        <asp:Label ID="Label5" runat="server" 
            Text='<%# "Địa Chỉ : " + Eval("DiaChi") %>'></asp:Label>
        <br />
    </ItemTemplate>
</asp:DataList>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
    ConnectionString="<%$ ConnectionStrings:ConnectServer %>" 
    SelectCommand="SELECT * FROM [LienLac]"></asp:SqlDataSource>

<table width="100%">
    <tr>
        <td width="200px">
            Chức danh:</td>
        <td>
            <asp:DropDownList ID="ddlChucVu" runat="server" Width="100px">
                <asp:ListItem>Ông</asp:ListItem>
                <asp:ListItem>Bà</asp:ListItem>
                <asp:ListItem>Anh</asp:ListItem>
                <asp:ListItem>Chị</asp:ListItem>
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td>
            Họ và tên:</td>
        <td>
            <asp:TextBox ID="txtName" runat="server" Width="300px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td>
            Điện thoại:</td>
        <td>
            <asp:TextBox ID="txtMobile" runat="server" Width="300px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td>
            Địa chỉ Email:</td>
        <td>
            <asp:TextBox ID="txtEmail" runat="server" Width="300px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td>
            Tên công ty:</td>
        <td>
            <asp:TextBox ID="txtCompany" runat="server" Width="300px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td>
            Địa chỉ:</td>
        <td>
            <asp:TextBox ID="txtAddress" runat="server" Width="300px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td>
            Nội dung:</td>
        <td>
            <asp:TextBox ID="txtDetail" runat="server" Height="118px" TextMode="MultiLine" 
                Width="400px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td>
            &nbsp;</td>
        <td>
            <asp:Button ID="btnGui" runat="server" onclick="btnGui_Click" Text="Gửi " 
                Width="100px" />
&nbsp;
            <input id="Reset1" style="width: 86px" type="reset" value="Reset" /></td>
    </tr>
</table>


